<?php

namespace app\model;

use think\Model;

class OrderHistories extends Model
{
    // Define the table name
    protected $name = 'order_histories';
    public $timestamps = false;



    // 创建记录
    public static function createHistory($orderId,$status,$remark=''){
        self::create([
            'order_id'=>$orderId,
            'status'=>$status,
            'notify'=>0,
            'comment'=>$remark,
            'created_at'=>date('Y-m-d H:i:s'),
            'updated_at'=>date('Y-m-d H:i:s'),
        ]);
    }

}
